using System;

namespace Work.API.Dtos
{
    /// <summary>
    /// 预约列表DTO（用于医生工作台）
    /// </summary>
    public class AppointmentListDto
    {
        /// <summary>
        /// 预约编号（注意：实体中是AppintmentId，少了一个o）
        /// </summary>
        public int AppintmentId { get; set; }

        /// <summary>
        /// 挂号单号
        /// </summary>
        public string? RegistrationNum { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string? CardNumber { get; set; }

        /// <summary>
        /// 患者ID
        /// </summary>
        public int PatientId { get; set; }

        /// <summary>
        /// 患者姓名
        /// </summary>
        public string? PatientName { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public bool Gender { get; set; }

        /// <summary>
        /// 性别文本
        /// </summary>
        public string GenderText => Gender ? "男" : "女";

        /// <summary>
        /// 年龄
        /// </summary>
        public int? Age { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }

        /// <summary>
        /// 科室
        /// </summary>
        public string? Department { get; set; }

        /// <summary>
        /// 医生
        /// </summary>
        public string? DoctorName { get; set; }

        /// <summary>
        /// 号类型
        /// </summary>
        public string? AppointmentType { get; set; }

        /// <summary>
        /// 挂号费
        /// </summary>
        public decimal? RegistrationFee { get; set; }

        /// <summary>
        /// 就诊日期
        /// </summary>
        public DateTime? VisitDate { get; set; }

        /// <summary>
        /// 挂号日期
        /// </summary>
        public DateTime? RegistrationDate { get; set; }

        /// <summary>
        /// 病历状态
        /// </summary>
        public string? RecordStatus { get; set; }
    }
}

